%% vectorize the sqrt operation
vec_sqrt=sqrt(0:0.5:3);
%% vectorize the sign operation
mat=rand(5,6)-0.5;
vec_sign=sign(mat);